package po

import "github.com/jinzhu/gorm"

type Article struct {
	Title    string `gorm:"column:title" json:"title"`
	Abstract string `gorm:"column:abstract" json:"abstract"`
	Author   string `gorm:"column:author" json:"author"`
	Content  string `gorm:"column:content" json:"content"`
	Date     string `gorm:"column:date" json:"date"`
	gorm.Model
}

func (Article) TableName() string {
	return "article"
}
